/***
 *
 *
 *                                                    __----~~~~~~~~~~~------___
 *                                   .  .   ~~//====......          __--~ ~~
 *                   -.            \_|//     |||\\  ~~~~~~::::... /~
 *                ___-==_       _-~o~  \/    |||  \\            _/~~-
 *        __---~~~.==~||\=_    -_--~/_-~|-   |\\   \\        _/~
 *    _-~~     .=~    |  \\-_    '-~7  /-   /  ||    \      /
 *  .~       .~       |   \\ -_    /  /-   /   ||      \   /
 * /  ____  /         |     \\ ~-_/  /|- _/   .||       \ /
 * |~~    ~~|--~~~~--_ \     ~==-/   | \~--===~~        .\
 *          '         ~-|      /|    |-~\~~       __--~~
 *                      |-~~-_/ |    |   ~\_   _-~            /\
 *                           /  \     \__   \/~                \__
 *                       _--~ _/ | .-~~____--~-/                  ~~==.
 *                      ((->/~   '.|||' -_|    ~~-/ ,              . _||
 *                                 -_     ~\      ~~---l__i__i__i--~~_/
 *                                 _-~-__   ~)  \--______________--~~
 *                               //.-~~~-~_--~- |-------~~~~~~~~
 *                                      //.-~~~--\
 *                               神兽保佑
 *                              代码无BUG!
 */
package com.qfedu.tantu.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.qfedu.tantu.dao.AttractionsDao;
import com.qfedu.tantu.dao.UserDao;
import com.qfedu.tantu.entity.Attractions;
import com.qfedu.tantu.service.intf.AttractionDetailService;
import com.qfedu.tantu.vo.R;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class AttractionDetailServiceImpl implements AttractionDetailService {
    @Resource
    private AttractionsDao attractionsDao;
    @Resource
    private UserDao userDao;

    @Override
    public R queryDetail(int aid) {
        //查询景点信息
        if (aid>0){
            QueryWrapper<Attractions> attractionsQueryWrapper = new QueryWrapper<>();
            QueryWrapper<Attractions> queryWrapperByAid = attractionsQueryWrapper.eq("id", aid);
            Attractions attraction = attractionsDao.selectOne(queryWrapperByAid);
        }
        //查询用户信息
        return null;
    }
}